package com.abc.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Map;

/**
 * 搜索文档请求DTO
 *
 * @author abc
 * @since 2024-01-01
 */
@Data
@Schema(description = "搜索文档请求")
public class SearchDocumentRequestDto {
    
    @Schema(description = "查询文本", example = "Spring Boot教程")
    private String query;
    
    @Schema(description = "返回结果数量", example = "3")
    private Integer topK = 3;
    
    @Schema(description = "过滤条件，支持按文档属性过滤",
            example = "{\"category\": \"技术文档\", \"author\": \"张三\"}")
    private Map<String, Object> filterExpression;
}
